﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;

namespace RA.UI.Model
{
    public class ImagesManagerModel
    {
        #region private
        string _defaultPath;
        #endregion private

        public ImagesManagerModel()
        {
            _defaultPath = AppDomain.CurrentDomain.BaseDirectory + "Images";
        }

        public string OpenFile()
        {
            var dialog = new OpenFileDialog { InitialDirectory = _defaultPath };
            dialog.Filter = "Изображения(*.jpeg)|*.jpg";
            if (dialog.ShowDialog() == true)
            {
                return dialog.FileName;
            }

            return null;
        }
    }
}
